#include "Configuration.h"

Configuration*	Configuration::_instance = NULL;

Configuration::Configuration()
{
	this->_db = NULL;
}

Configuration*	Configuration::GetConfiguration()
{
	if (Configuration::_instance == NULL)
		Configuration::_instance = new Configuration();
	return Configuration::_instance;
}

void			Configuration::InitDatabase(IDatabase* db)
{
	this->_db = db;
}

IDatabase*		Configuration::GetDatabase()
{
	return this->_db;
}